package net.wanho.entity;

import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import java.io.Serializable;

@Data
public class Product implements Serializable {
    private Integer id;
    private String name;
    private Integer price;

    @Version // 乐观锁注解
    private Integer version;
}